package Domain;

public class UserBean {

    /*
    定义了用户的基本属性，并设置了get和set方法和，重写了toString方法,用户类型必须要与数据库中的类型一致，否则参数传递就会出现问题，首先要在设计阶段应该把各种类型都确认好
     */

     //  定义用户的id
    private Integer user_id;

    // 定义用户名,用户名唯一
    private String user_name;

    //定义密码
    private String user_password;

    //定义用户的手机号
    private String user_phone;

    // 定义用户的地址
    private String user_address;

    @Override
    public String toString() {
        return "UserBean{" +
                "user_id='" + user_id + '\'' +
                ", user_name='" + user_name + '\'' +
                ", user_password='" + user_password + '\'' +
                ", user_phone='" + user_phone + '\'' +
                ", user_address='" + user_address + '\'' +
                ", user_email='" + user_email + '\'' +
                ", user_sex=" + user_sex +
                '}';
    }

    public Integer getUser_id() {
        return user_id;
    }

    public UserBean(Integer user_id, String user_name, String user_password, String user_phone, String user_address, String user_email, String user_sex) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.user_password = user_password;
        this.user_phone = user_phone;
        this.user_address = user_address;
        this.user_email = user_email;
        this.user_sex = user_sex;
    }




    public UserBean() {
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    public String getUser_phone() {
        return user_phone;
    }

    public void setUser_phone(String user_phone) {
        this.user_phone = user_phone;
    }

    public String getUser_address() {
        return user_address;
    }

    public void setUser_address(String user_address) {
        this.user_address = user_address;
    }

    public String getUser_email() {
        return user_email;
    }

    public void setUser_email(String user_email) {
        this.user_email = user_email;
    }

    public String getUser_sex() {
        return user_sex;
    }

    public void setUser_sex(String user_sex) {
        this.user_sex = user_sex;
    }

    // 定义用户的邮箱
    private String user_email;

    //定义用户的性别
    private String user_sex;

}
